package stock.database;
import java.sql.Connection;

import java.sql.SQLException;
import java.sql.Statement;

public class DBValuesSetter {
	public void insert(String query, Connection conn){
	    try{
	      Statement stmt = conn.createStatement();
	      stmt.executeUpdate(query);
	    }catch(SQLException e){
	    	System.out.println("La quuery es: " + query);
	      e.printStackTrace();
	    }

		
	}
	public void delete(String query, Connection conn){
	    try{
	      Statement stmt = conn.createStatement();
	      stmt.executeUpdate(query);
	    }catch(SQLException e){
	    	System.out.println("La quuery es: " + query);
	      e.printStackTrace();
	    }

		
	}

}
